<?php
namespace app\before\validate;

use think\Validate;

class WebConfig extends Validate
{
    protected $rule = [
        'key' => 'require',
        'remark' => 'require',
    ];
    protected $message = [
        'key.require' => 'key为必填项',
        'remark.require' => 'remark为必填项',
    ];
    protected $scene = [
        'edit' => [
            'key',
            'remark',
        ],
    ];
}
